<template>
  <div>
      <van-field label="小说标题" v-model="form.title"/>
      <van-field label="小说内容" v-model="form.content"/>
      <van-button @click="add">提交</van-button>
      
  </div>
</template>

<script>
export default {
    name:'issue',
    data(){
        return{
            form:{},
            uid:localStorage.getItem('uid')
        }
    },
    methods:{
        add(){
            this.form['uid'] = this.uid
            this.axios.post('/issue_fiction',this.form).then(res=>{
                console.log(res);
                if(res.data.code == 200){
                    alert("发表成功，待审核")
                }
            })
        }
    }
}
</script>

<style>

</style>